<?php
/**
{
    "nationId": "INT //国籍ID",
    "nation": "VARCHAR //国家",
    "weight": "INT //权重@noLoad",
    "status": "TINYINT //状态@status; 1::有效::@admin; 0::无效::@admin; "
}
 */

class Nation extends Base
{
    
	private $nationId= '';//国籍ID
	private $nation= NULL;//国家
	private $weight= "0";//权重@noLoad
	private $status= "3";//状态@status;1::有效::@admin;0::无效::@admin;

    public $isDbData = false;

    public function __construct()
    {
        parent::__construct();
    }


    public function __get($name) {
        return $this->$name;
    }

    public function __set($name, $value) {
        if(!$this->isDbData){
            if(!in_array($name,$this->loadedFiled))$this->loadedFiled[] = $name;
        }

        $this->$name=$value;
        $this->arr[$name] = $value;
    }

    public  function table()
    {
        return 'tbl_nation';
    }
    
    public  function key(){
        return 'nationId';
    }


    
    public static  function hideField()
    {
        return [];
    }
            
    public static  function skipField()
    {
        return [];
    }
            
    public static  function noViewField()
    {
        return [];
    }
            
    public static  function jsonField()
    {
        return [];
    }
            
    public static  function noLoadField()
    {
        return array (  0 => 'weight',);
    }
            
    public static  function deleteField()
    {
        return [];
    }
            
    public function className()
    {
        return 'Nation';
    }
    
    public  function field()
    {
        return array (  'nationId' =>   array (    0 => 'INT',    1 => 11,    2 => '国籍ID',  ),  'nation' =>   array (    0 => 'VARCHAR',    1 => 100,    2 => '国家',  ),  'weight' =>   array (    0 => 'INT',    1 => 11,    2 => '权重@noLoad',  ),  'status' =>   array (    0 => 'TINYINT',    1 => 4,    2 => '状态@status;1::有效::@admin;0::无效::@admin;',  ),);
    }


}